package org.jeecg.modules.ywTurnoverBoxBasic.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import org.jeecg.common.api.vo.Result;
import org.jeecg.constant.CommonConstant;
import org.jeecg.modules.ywTurnoverBoxBasic.entity.YwTurnoverBoxInfo;
import org.jeecg.modules.ywTurnoverBoxBasic.mapper.YwTurnoverBoxInfoMapper;
import org.jeecg.modules.ywTurnoverBoxBasic.service.IYwTurnoverBoxInfoService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: 周转箱信息表
 * @Author: jeecg-boot
 * @Date: 2024-08-14
 * @Version: V1.0
 */
@Service
public class YwTurnoverBoxInfoServiceImpl extends ServiceImpl<YwTurnoverBoxInfoMapper, YwTurnoverBoxInfo> implements IYwTurnoverBoxInfoService {

    @Resource
    private YwTurnoverBoxInfoMapper ywTurnoverBoxInfoMapper;

    @Override
    public Result<?> queryTurnoverBoxList() {
        QueryWrapper<YwTurnoverBoxInfo> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("status", CommonConstant.StatusEnum.YES.getCode());
        List<YwTurnoverBoxInfo> list = this.ywTurnoverBoxInfoMapper.selectList(queryWrapper);
        return Result.OK(list);
    }

}
